package com.evan.designpatterns.decorator.battercake.v2;

/**
 * @author :liujiapeng01
 * @date :2019-03-19 14:42
 **/
public class EggDecorator extends BaseBatterCakeDecorator {


    public EggDecorator(AbstractBatterCake batterCake) {
        super(batterCake);
    }

    @Override
    protected String getMsg() {
        return super.getMsg() + "one egg";
    }

    @Override
    protected int getPrice() {
        return super.getPrice() + 1;
    }
}
